package com.wangchao.administrator.zenmechi.ui.fragment.buyFragment;

import android.content.Context;

import com.wangchao.administrator.zenmechi.base.IModle;
import com.wangchao.administrator.zenmechi.base.IPresenter;
import com.wangchao.administrator.zenmechi.base.IView;

import java.util.List;

import rx.Subscriber;

/**
 * Created by cbb on 2016/10/18.
 * Email: 1023151857@qq.com
 */
public class BuyContract {


    public interface View extends IView{
        void buySuccess(adapterBuy adapter);
        void buyFailed(String msg);
    }
    public interface Modle extends IModle{
        void queryData(String market, Subscriber<List<BasketBean>> marketList);
        void upData(int position,int type);
        void deleteData(String name);
        void saveData(String market,String url,String name,String price,int count);
    }
    public interface Presenter extends IPresenter{
        void getData(String market, Context context);
        void setData(int position,int type);
        void clearData(String name);
        void addData(String market,String url,String name,String price,int count);
    }
}
